// import 'package:flutter/material.dart';
// import 'package:flutter_hx/provider/app_theme_provider.dart';
// import 'package:flutter_hx/provider/application.dart';
// import 'package:flutter_hx/router/app_router.gr.dart';
// import 'package:flutter_hx/theme/app_theme.dart';
// import 'package:provider/provider.dart';
//
// class App extends StatefulWidget{
//   const App({Key? key}) : super(key: key);
//   @override
//   State<StatefulWidget> createState()=>_AppState();
//
// }
//
// class _AppState extends State<App>{
//   late final AppRouter appRouter;
//
//   @override
//   Widget build(BuildContext context) {
//     return MultiProvider(
//       providers: [
//         ChangeNotifierProvider(create:(context)=>Application()),
//         ChangeNotifierProvider(create: (context)=>AppThemeProvider())
//       ],
//       child: Builder(
//         builder: (context)=>MaterialApp.router(
//           theme: Application.appTheme.data,
//           darkTheme: AppTheme.dark().data,
//           themeMode: Application.appTheme.mode,
//           routeInformationParser: appRouter.defaultRouteParser(),
//           routerDelegate: appRouter.delegate(),
//         )
//       ),
//     );
//   }
//
//   @override
//   void initState() {
//     super.initState();
//     appRouter=AppRouter(Application.navigatorKey);
//
//   }
// }